package com.cloudkinto.service.orderback;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cloudkinto.common.web.PageResult;
import com.cloudkinto.common.web.SingleResult;
import com.cloudkinto.entity.OrderBackDo;
import com.cloudkinto.service.orderback.vo.*;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  service接口
 * </p>
 * @author zhangyy
 * @since 2020-08-05
 */
public interface OrderBackService extends IService<OrderBackDo> {

    SingleResult addInit(Long userId, Long companyId);

    SingleResult updateStatusInit();

    void updateStatus(OrderBackUpdateStatusReq req ,Long userId);

    OrderBackAddReq add(OrderBackAddReq req, Long userId, Long companyId);

    Map processorStorage(OrderBackProcessorStorageReq req, Long userId);

    void customerProcessing(OrderBackCustomerProcessingReq req,Long userId);

    SingleResult updateInit(Long id, Long userId, Long companyId);

    OrderBackUpdateReq update(OrderBackUpdateReq updateVo, Long userId);

    int delete(Long id, Long userId);

    OrderBackDetailRes detail(Long id);

    SingleResult pageInit(Long companyId, Long currentUserId);

    List<OrderBackPageRes> getList(Map<String, String> map);

    PageResult getListPage(Map<String, String> map);

    SingleResult productType();

    void autoDropOverTime();
    void autoDropOverTime2();

    List<Map<String, String>> getFileList(Long id);

    void selectPicture(OrderBackPicReq req);

    void autoCompletedOrder();

}
